package com.baidu.fsg.uid.worker.entity;

import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className IdMapping
 * @description id映射表
 * @site
 * @company 
 * @create 2021-12-3
 */
@Data
@Entity
@ToString
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Table(name="t_id_mapping")
public class IdMapping implements Serializable,Cloneable{
    @Id
    @Column(name = "c_id",nullable=true)
    private String id;
    
    @Column(name = "c_uuid",nullable=true)
    private String uuid;
    
    @Version
    @Column(name = "c_revision",nullable=true)
    private Integer revision;
    
    @Column(name = "c_created_by",nullable=true)
    private String createdBy;
    
    @Column(name = "c_created_time",nullable=true,insertable = false,updatable = false)
    private Date createdTime;
    
    @Column(name = "c_updated_by",nullable=true)
    private String updatedBy;
    
    @Column(name = "c_updated_time",nullable=true,insertable = false,updatable = false)
    private Date updatedTime;

}